//no init.sqf
//LOCO addAction["Attach", "test2.sqf"];




// criar um test2.sqf
_loco = _this select 0;
_unit = _this select 1;
//_unit attachTo [_loco,[0,0,-0.8]];
_unit attachTo [_loco,[0,0,-0.8]];
_unit setDir (getDir _unit ) -90;

	_dummyAction = _loco addAction["foo", "teste2.sqf"];
	while {_dummyAction >= 0} do {
		//_loco removeAction _dummyAction;
		_dummyAction = _dummyAction - 1;
	};
	sleep 2;
_unit addAction["Detach", "test.sqf","", 0, false, true];

//criar um test.sqf
//detach _unit;